package org.fastser.dal.mybatis;

import java.util.List;
import java.util.Map;

import org.faster.dal.core.AbstractDAL;
import org.faster.dal.descriptor.Table;

public class MybatisDAL extends AbstractDAL {
    
    
    private CommonMapper commonMapper;
    
    public void setCommonMapper(CommonMapper commonMapper) {
        this.commonMapper = commonMapper;
    }


    @Override
    public List<Map<String, Object>> selectByCriteria(Table table) {
        return commonMapper.selectByCriteria(table);
    }

    @Override
    public int countByCriteria(Table table) {
        return commonMapper.countByCriteria(table);
    }

    @Override
    public Map<String, Object> selectByPrimaryKey(Table table) {
        return commonMapper.selectByPrimaryKey(table);
    }

    @Override
    public int insert(Table table) {
        return commonMapper.insert(table);
    }

    @Override
    public int updateByCriteria(Table table) {
        return commonMapper.updateByCriteria(table);
    }

    @Override
    public int updateByPrimaryKey(Table table) {
        return commonMapper.updateByPrimaryKey(table);
    }

    @Override
    public int deleteByPrimaryKey(Table table) {
        return commonMapper.deleteByPrimaryKey(table);
    }

    @Override
    public int deleteByCriteria(Table table) {
        return commonMapper.deleteByCriteria(table);
    }

    

}
